/*!
\copyright  Copyright (c) 2021 - 2022 Qualcomm Technologies International, Ltd.\n
            All Rights Reserved.\n
            Qualcomm Technologies International, Ltd. Confidential and Proprietary.
\file
\brief      Application configuration implementation
*/

#include "usb_dongle_config.h"
#include "profile_manager.h"

const rssi_pairing_parameters_t usb_dongle_config_rssi_params =
{
    .inquiry_filter = APP_CONFIG_RSSI_PAIRING_INQUIRY_PARAM_SET,
    .rssi_gap = APP_CONFIG_RSSI_PAIRING_MIN_RSSI_GAP,
    .rssi_threshold = APP_CONFIG_RSSI_PAIRING_RSSI_THRESHOLD,
    .inquiry_count = APP_CONFIG_RSSI_PAIRING_INQUIRY_COUNT
};

const profile_t usb_dongle_config_profile_list [] =
{
    profile_manager_hfp_profile,
    profile_manager_a2dp_profile,
    profile_manager_avrcp_profile,
    profile_manager_max_number_of_profiles,
};

const sink_service_config_t sink_service_config =
{
    .supported_profile_mask = (DEVICE_PROFILE_AVRCP|DEVICE_PROFILE_A2DP|DEVICE_PROFILE_HFP),
    .profile_list = usb_dongle_config_profile_list,
    .profile_list_length = ARRAY_DIM(usb_dongle_config_profile_list),
    .page_timeout = APP_CONFIG_PAGE_TIMEOUT_S,
    .rssi_pairing_params = &usb_dongle_config_rssi_params,
    .max_bredr_connections = SINK_SERVICE_CONFIG_BREDR_CONNECTIONS_MAX,
#ifdef ENABLE_LE_SINK_SERVICE
    .max_le_connections = SINK_SERVICE_CONFIG_LE_CONNECTIONS_MAX,
#endif    
};
